/*
 * @Author: asushiye
 * @Date: 2021-02-22 14:51:05
 * @Commit: file content
 */
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { CgDataBaseComponent } from './database/databasse/cg-database.component';
import { CgDatasourceComponent } from './database/datasource/cg-datasource.component';
import { CgDatatypeComponent } from './database/datatype/cg-datatype.component';
import { CgDatatypeMappingComponent } from './database/datatype-mapping/cg-datatype-mapping.component';
import { DataplatformIndicatorsDescComponent } from './dataplatform/indicators-desc/dp-indicators-desc.component';
import { DataplatformTermComponent } from './dataplatform/term/dp-term.component';
import { CgExcelComponent } from './excel/cg-excel.component';
import { CgExcelHistoryComponent } from './excel/history/cg-excel-history.component';
import { CgDbScriptLogComponent } from './excel/log/cg-db-script-log.component';
import { GenerateScriptComponent } from './generate/script/generate.script.component';
import { LangDBScriptComponent } from './lang/db-script/lang-db-script.component';
import { LangJpaScriptComponent } from './lang/jpa-script/lang-jpa-script.component';
import { MetaInfoComponent } from './meta/info/meta-info.component';
import { MetaViewComponent } from './meta/view/meta-view.component';
import { MetaWorkspaceEditComponent } from './meta/workspace/edit/edit.component';
import { MetaWorkspaceComponent } from './meta/workspace/workspace.component';

const routes: Routes = [
  { path: 'excel/queue', component: CgExcelComponent },
  { path: 'excel/queue/history', component: CgExcelHistoryComponent },
  { path: 'database/database', component: CgDataBaseComponent },
  { path: 'database/datasource', component: CgDatasourceComponent },
  { path: 'database/datatype/mapping', component: CgDatatypeMappingComponent },
  { path: 'database/datatype', component: CgDatatypeComponent },
  { path: 'database/script/log', component: CgDbScriptLogComponent },
  { path: 'generate/script', component: GenerateScriptComponent },
  { path: 'meta/design', component: MetaInfoComponent },
  { path: 'meta/view', component: MetaViewComponent },
  { path: 'meta/workspace/list', component: MetaWorkspaceComponent },
  { path: 'meta/workspace/edit', component: MetaWorkspaceEditComponent },
  { path: 'lang/db/script', component: LangDBScriptComponent },
  { path: 'lang/jpa/script', component: LangJpaScriptComponent },
  { path: 'dataplatform/indicators/desc', component: DataplatformIndicatorsDescComponent },
  { path: 'dataplatform/term', component: DataplatformTermComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CodegenRoutingModule {}
